using System.Windows;
using ShellLight.Contract;
using ShellLight.ModuleExample.Views;

namespace ShellLight.ModuleExample.Commands
{
    public class TestCommand : UICommand
    {
        private TestView view;

        public override UIElement DoShow()
        {
            if (view == null)
            {
                view = new TestView(Context);
            }
            return view;
        }

        public override string Name
        {
            get { return "UI Command 1"; }
        }
    }
}